<template>
  <div>
    <login-page
      v-if="page == 1"
      :tabpage="page"
      v-on:tabpage="UpdatePage($event)"
    />
    <index-Page v-if="page == 2" />
  </div>
</template>

<script>
import LoginPage from "./components/LoginPage.vue";
import IndexPage from "./components/IndexPage.vue";

export default {
  data: function () {
    return {
      page: 1,
    };
  },
  name: "App",
  methods: {
    UpdatePage: function (page) {
      this.page = page;
    },
  },
  components: {
    LoginPage,
    IndexPage,
  },
};
</script>
 <style>
body {
  margin: 0;
  padding: 0;
}
</style>